<?
function poner_imagen()
{
	srand((double)microtime()*1000000);
	$numero = rand(0,9);// El 0 siempre es fijo.

	// +-------------------------+
	// | Inicializando variables |
	// +-------------------------+

$imagen0 = "<img src=\"imagenes/arriba/arriba_10.jpg\" width=\"411\" height=\"54\" border=\"0\" alt=\"Foto\">"; 
$imagen1 = "<img src=\"imagenes/arriba/arriba_11.jpg\" width=\"411\" height=\"54\" border=\"0\" alt=\"Foto>\">";
$imagen2 = "<img src=\"imagenes/arriba/arriba_12.jpg\" width=\"411\" height=\"54\" border=\"0\" alt=\"Foto\">";
$imagen3 = "<img src=\"imagenes/arriba/arriba_13.jpg\" width=\"411\" height=\"54\" border=\"0\" alt=\"Foto\">";
$imagen4 = "<img src=\"imagenes/arriba/arriba_14.jpg\" width=\"411\" height=\"54\" border=\"0\"alt=\"Foto\">";
$imagen5 = "<img src=\"imagenes/arriba/arriba_15.jpg\" width=\"411\" height=\"54\" border=\"0\" alt=Foto>";
$imagen6 = "<img src=\"imagenes/arriba/arriba_16.jpg\" width=\"411\" height=\"54\" border=\"0\" alt=\"Foto\">";
$imagen7 = "<img src=\"imagenes/arriba/arriba_17.jpg\" width=\"411\" height=\"54\" border=\"0\" alt=\"Foto\">";
$imagen8 = "<img src=\"imagenes/arriba/arriba_18.jpg\" width=\"411\" height=\"54\" border=\"0\" alt=\"Foto\">";
$imagen9 = "<img src=\"imagenes/arriba/arriba_19.jpg\" width=\"411\" height=\"54\" border=\"0\" alt=\"Foto\">";

if ($numero== "0") {echo ("$imagen0");}
if ($numero== "1") {echo ("$imagen1");}
if ($numero== "2") {echo ("$imagen2");}
if ($numero== "3") {echo ("$imagen3");}
if ($numero== "4") {echo ("$imagen4");}
if ($numero== "5") {echo ("$imagen5");}
if ($numero== "6") {echo ("$imagen6");}
if ($numero== "7") {echo ("$imagen7");}
if ($numero== "8") {echo ("$imagen8");}
if ($numero== "9") {echo ("$imagen9");}
}
?>
